package Com.amit.Collection;

import java.util.ArrayList;
import java.util.Iterator;

public class Lab3 {

	public static void main(String[] args) {
		
		ArrayList al=new ArrayList();
		al.add("amit");
		al.add("anil");
		
		ArrayList al1=new ArrayList();
		al1.add("amit1");
		al1.add("anil");
		
		al.addAll(al1);
		
		Iterator itr=al.iterator();
		
		while(itr.hasNext())
		{
			System.out.println(itr.next());
		}
		
		

	}

}
